Tabbed Content
fun TabbedContent(modifier: Modifier = Modifier, key: String = "", labelToContent: Map<String, @Composable () -> Unit>, wrapperComposable: @Composable () -> Unit? = null)
A composable that displays tabbed content where the active tab's content is displayed below the tab options.
Parameters
modifier
Modifier to be applied to the layout.
key
The current active key to decide the content to display.
label To Content
A map where keys represent labels and values are composable content associated with each label.
wrapper Composable
A wrapper composable to surround the label/content layout, optional.